//
//  CommentTableViewController.swift
//  NetMusic
//
//  Created by PushMeBaby on 16/2/5.
//  Copyright © 2016年 CoderC. All rights reserved.
//

import UIKit

class CommentTableViewController: UITableViewController {
    
    let sliderImageView = SliderImageView(frame: CGRectMake(0 , 0 , OSScreenW, 118))
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        tableView.registerClass(UITableViewCell.classForCoder(), forCellReuseIdentifier: "reuseIdentifier")
        tableView.tableHeaderView = sliderImageView

        tableView.tableFooterView = UIView()
    }

    
    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        
    }
    
    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 1
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 20
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("reuseIdentifier", forIndexPath: indexPath)

        // Configure the cell...
        
        cell.contentView.backgroundColor = UIColor.blueColor()
        
        cell.textLabel?.text = String( indexPath.row )

        return cell
    }
    
 
    
    
    

}
